package com.AJava1710D.lock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * 作者: LCG
 * 日期: 2020/6/28 08:36
 * 描述:
 */
public class TestRennlock {

    static Integer a=0;

    public static void main(String[] args) throws InterruptedException {




        ReentrantLock reentrantLock=new ReentrantLock();

        ThreadReen1 threadReen1=new ThreadReen1(reentrantLock);

        ThreadReen1 threadReen12=new ThreadReen1(reentrantLock);

        threadReen1.start();

        threadReen12.start();


        threadReen1.join();
        threadReen12.join();

        System.out.println(a);
    }

}
